package com.amado.course20Tree;

/**
 * 树型节点
 * Created by Administrator on 2018/6/20.
 */
public class Node {
    /**
     * 节点编码（唯一）
     */
    private String nodeCode;
    /**
     * 节点名称
     */
    private String nodeName;
    /**
     * 子节点
     */
    private Node[] childNodes;
    public Node(String nodeCode, String nodeName) {
		super();
		this.nodeCode = nodeCode;
		this.nodeName = nodeName;
	}
    public Node(String nodeCode, String nodeName, Node[] childNodes) {
		super();
		this.nodeCode = nodeCode;
		this.nodeName = nodeName;
		this.childNodes = childNodes;
	}

	public String getNodeCode() {
        return nodeCode;
    }

    public void setNodeCode(String nodeCode) {
        this.nodeCode = nodeCode;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public Node[] getChildNodes() {
        return childNodes;
    }

    public void setChildNodes(Node[] childNodes) {
        this.childNodes = childNodes;
    }
}
